package cn.ibizlab.odoo.core.odoo_hr.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_hr.domain.Hr_leave_allocation;
import cn.ibizlab.odoo.core.odoo_hr.filter.Hr_leave_allocationSearchContext;

/**
 * 实体[Hr_leave_allocation] 服务对象接口
 */

public interface IHr_leave_allocationService{
     Hr_leave_allocation get(Integer id) ;
     Hr_leave_allocation get(Hr_leave_allocation hr_leave_allocation) ;
     void updateBatch(List<Hr_leave_allocation> hr_leave_allocations, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;
     void createBatch(List<Hr_leave_allocation> hr_leave_allocations, int batchSize) ;
     boolean update(Hr_leave_allocation hr_leave_allocation) ;
     boolean create(Hr_leave_allocation hr_leave_allocation) ;

    /**
     * 查询集合 默认查询
     */
    Page<Hr_leave_allocation> searchDefault(Hr_leave_allocationSearchContext context) ;

    /**
     * 根据HR 部门查询
     */
     Page<Hr_leave_allocation> selectByOdoo_department(Integer id) ;

    /**
     * 根据员工类别查询
     */
     Page<Hr_leave_allocation> selectByOdoo_category(Integer id) ;

    /**
     * 根据员工查询
     */
     Page<Hr_leave_allocation> selectByOdoo_employee(Integer id) ;

    /**
     * 根据员工查询
     */
     Page<Hr_leave_allocation> selectByOdoo_first_approver(Integer id) ;

    /**
     * 根据员工查询
     */
     Page<Hr_leave_allocation> selectByOdoo_second_approver(Integer id) ;

    /**
     * 根据休假分配查询
     */
     Page<Hr_leave_allocation> selectByOdoo_parent(Integer id) ;

    /**
     * 根据休假类型查询
     */
     Page<Hr_leave_allocation> selectByOdoo_holiday_status(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Hr_leave_allocation> selectByOdoo_mode_company(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Hr_leave_allocation> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Hr_leave_allocation> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Hr_leave_allocation convert2Domain(cn.ibizlab.odoo.core.client.model.Ihr_leave_allocation model ,Hr_leave_allocation domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ihr_leave_allocation convert2Model(Hr_leave_allocation domain , cn.ibizlab.odoo.core.client.model.Ihr_leave_allocation model);

}
